{% extends '../common/layout.html' %} {% block content %}
<div class="content">
    <div id="block-search" class="panel panel-default list-search dn">
        <div class="panel-body">
            <div id="form-search">
                <div id="search-search">
                    <div class="search-item col-md-6 mb20">
                        <div class="search-title">
                            <h5>申请类型</h5>
                            <h6>Type</h6>
                        </div>
                        <div class="search-input" id="field-search-type"></div>
                    </div>
                    <div class="search-item col-md-6 mb20">
                        <div class="search-title">
                            <h5>关键字</h5>
                            <h6>Keywords</h6>
                        </div>
                        <div class="search-input" id="field-search-Keywords"></div>
                    </div>
                    <div class="search-row search-submit">
                        <button class="btn common-form-btn" id="search-btn" type="submit">搜索</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
  <div id="block-list" class="panel panel-default list-panel dn">
    <div class="panel-heading">
      <div class="panel-title"></div>
    </div>
    <div class="panel-body">
      <table id="list-list" class="table table-bordered table-striped list-table mb0">
        <thead>
          <th class="tac vam">名称</th>
          <th class="tac vam">类型</th>
          <th class="tac vam">所属表单</th>
          <th class="tac vam" width="140">
            action
            <button class="btn btn-primary ml5" type="button" create>新建</button>
          </th>
        </thead>
        <tbody>
        </tbody>
      </table>
      {% raw %}
      <script id="template-list-detail" type="text/template7">
        <tr data>
          <td class="vam">{{format name}}</td>
          <td class="vam">{{format type}}</td>
          <td class="vam">{{format others 'adminDictionaryList.load.formList'}}</td>
          <td class="tac">
            <button class="btn btn-default" type="button" update>修改</button>
            <button class="btn btn-danger" type="button" delete>删除</button>
          </td>
        </tr>
      </script>
      {% endraw %}
      <div id="block-alert" class="alert alert-danger mb0 tac dn"></div>
    </div>
  </div>
  <div id="block-pagination" class="list-pagination tac dn">
  </div>
</div>
<div id="modal-detail" class="modal fade">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <form id="form-detail">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title">下拉框类型详细</h4>
        </div>
        <div class="modal-body">
          <table class="table table-bordered mb0">
            <tbody>
              <tr>
                <th class="tac vam" width="120"><span class="required-tip">*</span>字典名称</th>
                <td id="field-detail-name" class="vam"></td>
              </tr>
              <tr>
                <th class="tac vam"><span class="required-tip">*</span>字典编码</th>
                <td id="field-detail-code" class="vam"></td>
              </tr>
              <tr>
                <th class="tac vam"><span class="required-tip">*</span>字典类型</th>
                <td id="field-detail-type" class="vam"></td>
              </tr>
              <tr>
                <th class="tac vam"><span class="required-tip">*</span>所属表单</th>
                <td id="field-detail-form" class="vam"></td>
              </tr>
            </tbody>
          </table>
        </div>
        <div class="modal-footer">
          <button id="btn-detail-save-detail" class="btn btn-primary" type="submit">保存</button>
          <button class="btn btn-default" type="button" data-dismiss="modal">取消</button>
        </div>
      </form>
    </div>
  </div>
</div>
{% endblock %} {% block scripts %}
<script src="/asstes/scripts/admin/dictionary-list.js?{{timestamp}}"></script>
{% endblock %}